import { Link, Outlet } from "react-router-dom";
const A = () => {
    return (
        <div>
            <h1>这是Cate_a组件</h1>
            <ul>
                <li><Link to="/cate/a/detail/1">传参1</Link></li>
                <li><Link to="/cate/a/detail/2?a=1&b=2">传参2</Link></li>
                <li><Link to={{ pathname: "/cate/a/detail/3", search: "a99&b=100" }}>传参3</Link></li>
                <li><Link to="/cate/a/detail/4" state={{ a: 100, b: 200 }}>传参4</Link></li>
            </ul>
            <Outlet></Outlet>
        </div>
    )
}
export default A;